package com.jd.home.session;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Sesion提供类
 * @author lx
 *
 */
public interface SessionProvider {
	
	//把用户名放到Session
	public void setAttributeForUserName(HttpServletRequest request, HttpServletResponse response, String name, String value);

	//把验证码放到Session
	public void setAttributeForCode(HttpServletRequest request, HttpServletResponse response, String name, String value);

	//取出用户名或验证码
	public String getAttribute(HttpServletRequest request, HttpServletResponse response, String name);
	//获取SessionID

	public String getSessionId(HttpServletRequest request, HttpServletResponse response);
	
	
	

}
